<!DOCTYPE html>
<html class="client-nojs vector-feature-night-mode-disabled vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-sticky-header-enabled" lang="en" dir="ltr"><head>
<meta charset="UTF-8">
<title>Whitespace (programming language)</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="canonical" href="https://en.wikipedia.org/wiki/Whitespace_(programming_language)"> <link href="./mw/ext.cite.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.icons.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/user.styles.css" rel="stylesheet" type="text/css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link rel="stylesheet" type="text/css" href="./mw/site.styles.css">
<link rel="stylesheet" type="text/css" href="./mw/noscript.css">
<link rel="stylesheet" type="text/css" href="./footer.css">
<link rel="stylesheet" type="text/css" href="./vector-2022.css">
</head>
<body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Whitespace_programming_language rootpage-Whitespace_programming_language skin-vector-2022 action-view">
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="mw-content-container">
<main id="content" class="mw-body">
<header class="mw-body-header vector-page-titlebar">
<h1 id="firstHeading" class="firstHeading mw-first-heading">
<span id="openzim-page-title" class="mw-page-title-main"><span class="mw-page-title-main">Whitespace (programming language)</span></span>
</h1>
</header>
<a id="top"></a>
<div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
<div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="en" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr">
<p class="mw-empty-elt">
</p>
<style data-mw-deduplicate="TemplateStyles:r1236090951">
/* start https://en.wikipedia.org/ */
.mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}@media print{body.ns-0 .mw-parser-output .hatnote{display:none!important}}
/* end https://en.wikipedia.org/ */
</style><div role="note" class="hatnote navigation-not-searchable">For syntactically significant whitespace in non-esoteric programming languages, see <a href="Off-side_rule" title="Off-side rule">Off-side rule</a>.</div>
<p><b>Whitespace</b> is an <a href="Esoteric_programming_language" title="Esoteric programming language">esoteric</a> <a href="Programming_language" title="Programming language">programming language</a> with <a href="Syntax" title="Syntax">syntax</a> where <i>only</i> <a href="Whitespace_characters" class="mw-redirect" title="Whitespace characters">whitespace characters</a> (<a href="Space_character" class="mw-redirect" title="Space character">space</a>, <a href="Tab_character" class="mw-redirect" title="Tab character">tab</a> and <a href="Linefeed" class="mw-redirect" title="Linefeed">linefeed</a>) have meaning – contrasting typical languages that largely ignore whitespace characters.
<sup id="cite_ref-whitespace_1-0" class="reference"><a href="#cite_note-whitespace-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-parker_2-0" class="reference"><a href="#cite_note-parker-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup>
</p><p>As a consequence of its syntax, Whitespace <a href="Source_code" title="Source code">source code</a> can be contained within the whitespace of code written in a language that ignores whitespace – making the text a <a href="Polyglot_(computing)" title="Polyglot (computing)">polyglot</a>.<sup id="cite_ref-parker_2-1" class="reference"><a href="#cite_note-parker-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup>
</p><p>Whitespace is an <a href="Imperative_programming" title="Imperative programming">imperative</a>, <a href="Stack-oriented_programming" title="Stack-oriented programming">stack-based</a> language.
The programmer can push arbitrary-width <a href="Integer" title="Integer">integer</a> values onto a <a href="Stack_(abstract_data_type)" title="Stack (abstract data type)">stack</a> and access a <a href="Dynamic_memory_allocation" class="mw-redirect" title="Dynamic memory allocation">heap</a> to store data.
</p><p>An <a href="Interpreter_(computing)" title="Interpreter (computing)">interpreter</a>, along with its <a href="Haskell" title="Haskell">Haskell</a> source code, is provided by the Whitespace creators.
</p>
<meta property="mw:PageProp/toc">
<div class="mw-heading mw-heading2"><h2 id="History">History</h2></div>
<p>Edwin Brady and Chris Morris, who also developed the Kaya and <a href="Idris_(programming_language)" title="Idris (programming language)">Idris</a> languages, created Whitespace in 2002 at the <a href="University_of_Durham" class="mw-redirect" title="University of Durham">University of Durham</a>.
<a href="Slashdot" title="Slashdot">Slashdot</a> published a review on <a href="April_Fool's_Day" class="mw-redirect" title="April Fool's Day">April Fool's Day</a> 2003.<sup id="cite_ref-3" class="reference"><a href="#cite_note-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup>
</p><p>The idea of using whitespace characters as operators for the <a href="C%2B%2B" title="C++">C++</a> language had been facetiously suggested five years earlier by <a href="Bjarne_Stroustrup" title="Bjarne Stroustrup">Bjarne Stroustrup</a>.<sup id="cite_ref-4" class="reference"><a href="#cite_note-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="Syntax">Syntax</h2></div>
<p>Whitespace defines a command as a sequence of whitespace characters. For example, <code>[Tab][Space][Space][Space]</code> performs arithmetic addition of the top two elements on the stack.
</p><p>A command is written as an instruction modification parameter (IMP) followed by an operation and then any parameters.
<sup id="cite_ref-whitespace_1-1" class="reference"><a href="#cite_note-whitespace-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup>
</p><p>IMP sequences include:
</p>
<table class="wikitable">
<tbody><tr>
<th>IMP</th>
<th>Meaning
</th></tr>
<tr>
<td>[Space]</td>
<td>Stack Manipulation
</td></tr>
<tr>
<td>[Tab][Space]</td>
<td>Arithmetic
</td></tr>
<tr>
<td>[Tab][Tab]</td>
<td>Heap Access
</td></tr>
<tr>
<td>[LineFeed]</td>
<td>Flow Control
</td></tr>
<tr>
<td>[Tab][LineFeed]</td>
<td>I/O
</td></tr></tbody></table>
<p>Operator sequences, organized by IMP, include:<sup id="cite_ref-whitespace_1-2" class="reference"><a href="#cite_note-whitespace-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup>
</p>
<table class="wikitable">
<tbody><tr>
<th>IMP</th>
<th>Operator</th>
<th>Parameter</th>
<th>Meaning
</th>
<th>Minimum size of the stack required*
</th></tr>
<tr>
<td>[Space]</td>
<td>[Space]</td>
<td>Number</td>
<td>Push the number onto the stack
</td>
<td>0
</td></tr>
<tr>
<td>[Space]</td>
<td>[LF][Space]</td>
<td>-</td>
<td>Duplicate the top item on the stack
</td>
<td>1
</td></tr>
<tr>
<td>[Space]</td>
<td>[Tab][Space]</td>
<td>Number <i>n</i></td>
<td>Copy the nth item on the stack (given by the argument) onto the top of the stack**
</td>
<td><i>n</i>+1
</td></tr>
<tr>
<td>[Space]</td>
<td>[LF][Tab]</td>
<td>-</td>
<td>Swap the top two items on the stack
</td>
<td>2
</td></tr>
<tr>
<td>[Space]</td>
<td>[LF][LF]</td>
<td>-</td>
<td>Discard the top item on the stack
</td>
<td>1
</td></tr>
<tr>
<td>[Space]</td>
<td>[Tab][LF]</td>
<td>Number <i>n</i></td>
<td>Slide n items off the stack, keeping the top item**
</td>
<td>may be less than <b><i>n</i>+1</b>,
<p>but at least 1 item
(top of the stack)
is required
</p>
</td></tr>
<tr>
<td>[Tab][Space]</td>
<td>[Space][Space]</td>
<td>-</td>
<td>Addition
</td>
<td>2
</td></tr>
<tr>
<td>[Tab][Space]</td>
<td>[Space][Tab]</td>
<td>-</td>
<td>Subtraction
</td>
<td>2
</td></tr>
<tr>
<td>[Tab][Space]</td>
<td>[Space][LF]</td>
<td>-</td>
<td>Multiplication
</td>
<td>2
</td></tr>
<tr>
<td>[Tab][Space]</td>
<td>[Tab][Space]</td>
<td>-</td>
<td>Integer division
</td>
<td>2 (top may not be 0)
</td></tr>
<tr>
<td>[Tab][Space]</td>
<td>[Tab][Tab]</td>
<td>-</td>
<td><a href="Modulo_operation" class="mw-redirect" title="Modulo operation">Modulo</a>
</td>
<td>2 (top may not be 0)
</td></tr>
<tr>
<td>[Tab][Tab]</td>
<td>[Space]</td>
<td>-</td>
<td>Store in heap
</td>
<td>2
</td></tr>
<tr>
<td>[Tab][Tab]</td>
<td>[Tab]</td>
<td>-</td>
<td>Retrieve from heap
</td>
<td>1
</td></tr>
<tr>
<td>[LF]</td>
<td>[Space][Space]</td>
<td>Label</td>
<td>Mark a location in the program
</td>
<td>0
</td></tr>
<tr>
<td>[LF]</td>
<td>[Space][Tab]</td>
<td>Label</td>
<td>Call a subroutine
</td>
<td>0
</td></tr>
<tr>
<td>[LF]</td>
<td>[Space][LF]</td>
<td>Label</td>
<td>Jump to a label
</td>
<td>0
</td></tr>
<tr>
<td>[LF]</td>
<td>[Tab][Space]</td>
<td>Label</td>
<td>Jump to a label if the top of the stack is zero
</td>
<td>1
</td></tr>
<tr>
<td>[LF]</td>
<td>[Tab][Tab]</td>
<td>Label</td>
<td>Jump to a label if the top of the stack is negative
</td>
<td>1
</td></tr>
<tr>
<td>[LF]</td>
<td>[Tab][LF]</td>
<td>-</td>
<td>End a subroutine and transfer control back to the caller
</td>
<td>0 <i>(callstack: 1)</i>
</td></tr>
<tr>
<td>[LF]</td>
<td>[LF][LF]</td>
<td>-</td>
<td>End the program
</td>
<td>0
</td></tr>
<tr>
<td>[Tab][LF]</td>
<td>[Space][Space]</td>
<td>-</td>
<td>Output the character at the top of the stack
</td>
<td>1
</td></tr>
<tr>
<td>[Tab][LF]</td>
<td>[Space][Tab]</td>
<td>-</td>
<td>Output the number at the top of the stack
</td>
<td>1
</td></tr>
<tr>
<td>[Tab][LF]</td>
<td>[Tab][Space]</td>
<td>-</td>
<td>Read a character and place it in the location given by the top of the stack
</td>
<td>1
</td></tr>
<tr>
<td>[Tab][LF]</td>
<td>[Tab][Tab]</td>
<td>-</td>
<td>Read a number and place it in the location given by the top of the stack
</td>
<td>1
</td></tr></tbody></table>
<p>*Due to Haskell being lazily evaluated, the effect of the stack being too small may only show when, for example, invoking the <i>outputting a number</i> side-effect.
</p><p>**The <i>copy</i> and <i>slide</i> operations were added in Whitespace 0.3.<sup id="cite_ref-whitespace_1-3" class="reference"><a href="#cite_note-whitespace-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="Comments">Comments</h3></div>
<p>Characters other than <code>space</code>, <code>tab</code> and <code>linefeed</code> are ignored and thus can be used for comments.
</p>
<div class="mw-heading mw-heading3"><h3 id="Numbers">Numbers</h3></div>
<p>A numeric value is represented as a sequence of <code>space</code> and <code>tab</code> characters that represent 0 and 1 respectively and terminated by a <code>linefeed</code>. The first character represents the <a href="Sign_(mathematics)" title="Sign (mathematics)">sign</a> of the value – <code>space</code> for positive and <code>tab</code> for negative. Subsequent characters before the terminator represent the binary digits of a value.
</p><p>For example:
</p>
<ul><li>[space][tab][space][space][tab][space][tab][tab][linefeed] (STSSTSTTL) is positive since it starts with <code>space</code> and represents 1001011 in binary, which is 75 in decimal.</li>
<li>[tab][tab][tab][space][space][tab][space][linefeed] (TTTSSTSL) is negative since it starts with <code>tab</code> and represents -110010 in binary which is −50 in decimal.</li></ul>
<div class="mw-heading mw-heading3"><h3 id="Labels">Labels</h3></div>
<p>A label is used for <a href="Control_flow" title="Control flow">control flow</a>. It is a <code>linefeed</code>-terminated sequence of <code>space</code>and <code>tab</code> characters. As there is only one namespace, all labels must be unique.
<sup id="cite_ref-whitespace_1-4" class="reference"><a href="#cite_note-whitespace-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="Sample_code">Sample code</h2></div>
<p>The following source code is for a Whitespace <a href="Hello_world_program" class="mw-redirect" title="Hello world program">"Hello, world!"</a> program. For clarity, it is annotated with <code>S</code>, <code>T</code> and <code>L</code> before each
<code><span style="color:#ffffff;background:#ff9999">space</span></code>,
<code><span style="color:#ffffff;background:#9999ff">tab</span></code>, and <code>linefeed</code>.
</p>
<pre>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>T<span style="background:#9999ff"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>T<span style="background:#9999ff"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>L:Push_+1001000=72='H'_onto_the_stack
T<span style="background:#9999ff"> </span>L
S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>:Output_'H';_S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>T<span style="background:#9999ff"> </span>T<span style="background:#9999ff"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>T<span style="background:#9999ff"> </span>S<span style="background:#ff9999"> </span>T<span style="background:#9999ff"> </span>L:Push_+1100101=101='e'_onto_the_stack
T<span style="background:#9999ff"> </span>L
S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>:Output_'e';_S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>T<span style="background:#9999ff"> </span>T<span style="background:#9999ff"> </span>S<span style="background:#ff9999"> </span>T<span style="background:#9999ff"> </span>T<span style="background:#9999ff"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>L:+1101100=108='l'
T<span style="background:#9999ff"> </span>L
S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>T<span style="background:#9999ff"> </span>T<span style="background:#9999ff"> </span>S<span style="background:#ff9999"> </span>T<span style="background:#9999ff"> </span>T<span style="background:#9999ff"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>L:+1101100=108='l'
T<span style="background:#9999ff"> </span>L
S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>T<span style="background:#9999ff"> </span>T<span style="background:#9999ff"> </span>S<span style="background:#ff9999"> </span>T<span style="background:#9999ff"> </span>T<span style="background:#9999ff"> </span>T<span style="background:#9999ff"> </span>T<span style="background:#9999ff"> </span>L:+1101111=111='o'
T<span style="background:#9999ff"> </span>L
S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>T<span style="background:#9999ff"> </span>S<span style="background:#ff9999"> </span>T<span style="background:#9999ff"> </span>T<span style="background:#9999ff"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>L:+101100=44=','
T<span style="background:#9999ff"> </span>L
S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>T<span style="background:#9999ff"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>L:+100000=32=Space
T<span style="background:#9999ff"> </span>L
S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>T<span style="background:#9999ff"> </span>T<span style="background:#9999ff"> </span>T<span style="background:#9999ff"> </span>S<span style="background:#ff9999"> </span>T<span style="background:#9999ff"> </span>T<span style="background:#9999ff"> </span>T<span style="background:#9999ff"> </span>L:+1110111=119='w'
T<span style="background:#9999ff"> </span>L
S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>T<span style="background:#9999ff"> </span>T<span style="background:#9999ff"> </span>S<span style="background:#ff9999"> </span>T<span style="background:#9999ff"> </span>T<span style="background:#9999ff"> </span>T<span style="background:#9999ff"> </span>T<span style="background:#9999ff"> </span>L:+1101111=111='o'
T<span style="background:#9999ff"> </span>L
S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>T<span style="background:#9999ff"> </span>T<span style="background:#9999ff"> </span>T<span style="background:#9999ff"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>T<span style="background:#9999ff"> </span>S<span style="background:#ff9999"> </span>L:+1110010=114='r'
T<span style="background:#9999ff"> </span>L
S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>T<span style="background:#9999ff"> </span>T<span style="background:#9999ff"> </span>S<span style="background:#ff9999"> </span>T<span style="background:#9999ff"> </span>T<span style="background:#9999ff"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>L:+1101100=108='l'
T<span style="background:#9999ff"> </span>L
S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>T<span style="background:#9999ff"> </span>T<span style="background:#9999ff"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>T<span style="background:#9999ff"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>L=+1100100=100='d'
T<span style="background:#9999ff"> </span>L
S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>T<span style="background:#9999ff"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>T<span style="background:#9999ff"> </span>L:+100001=33='!'
T<span style="background:#9999ff"> </span>L
S<span style="background:#ff9999"> </span>S<span style="background:#ff9999"> </span>:Output_'!';_L
L
L:End_the_program
</pre>
<p>When Whitespace source code is displayed in some browsers, the horizontal spacing produced by a tab character is not fixed, but depends on its location in the text relative to the next <a href="Tab_key#HTML" title="Tab key">horizontal tab stop</a>. Depending on the software, tab characters may also get replaced by the corresponding variable number of space characters.
</p>
<div class="mw-heading mw-heading2"><h2 id="References">References</h2></div>
<div class="mw-references-wrap"><ol class="references">
<li id="cite_note-whitespace-1"><span class="mw-cite-backlink">^ <a href="#cite_ref-whitespace_1-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-whitespace_1-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-whitespace_1-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-whitespace_1-3"><sup><i><b>d</b></i></sup></a> <a href="#cite_ref-whitespace_1-4"><sup><i><b>e</b></i></sup></a></span> <span class="reference-text"><style data-mw-deduplicate="TemplateStyles:r1238218222">
/* start https://en.wikipedia.org/ */
.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("./mw/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("./mw/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("./mw/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("./mw/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}
/* end https://en.wikipedia.org/ */
</style><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20150618184706/http://compsoc.dur.ac.uk/whitespace/tutorial.php">"Whitespace"</a>. <i>Compsoc</i>. Archived from <a rel="nofollow" class="external text" href="http://compsoc.dur.ac.uk/whitespace/tutorial.php">the original</a> on 18 June 2015<span class="reference-accessdate">. Retrieved <span class="nowrap">8 December</span> 2015</span>.</cite></span>
</li>
<li id="cite_note-parker-2"><span class="mw-cite-backlink">^ <a href="#cite_ref-parker_2-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-parker_2-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFParker2019" class="citation book cs1"><a href="Matt_Parker" title="Matt Parker">Parker, Matt</a> (2019). <i>Humble Pi: a comedy of maths errors</i>. Allen Lane. p. 21. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>978-0-241-36023-1</bdi>.</cite></span>
</li>
<li id="cite_note-3"><span class="mw-cite-backlink"><b><a href="#cite_ref-3">^</a></b></span> <span class="reference-text"><cite id="CITEREFTimothy2003" class="citation web cs1">Timothy (1 April 2003). <a rel="nofollow" class="external text" href="http://developers.slashdot.org/story/03/04/01/0332202/New-Whitespace-Only-Programming-Language">"New Whitespace-Only Programming Language"</a>. <i>Slashdot</i><span class="reference-accessdate">. Retrieved <span class="nowrap">23 January</span> 2014</span>.</cite></span>
</li>
<li id="cite_note-4"><span class="mw-cite-backlink"><b><a href="#cite_ref-4">^</a></b></span> <span class="reference-text"><cite id="CITEREFStroustrup" class="citation web cs1">Stroustrup, Bjarne. <a rel="nofollow" class="external text" href="http://www.stroustrup.com/whitespace98.pdf">"Generalizing Overloading for C++2000"</a> <span class="cs1-format">(PDF)</span>. Florham Park, NJ, USA: AT&T Labs<span class="reference-accessdate">. Retrieved <span class="nowrap">23 January</span> 2014</span>.</cite></span>
</li>
</ol></div>
<div class="mw-heading mw-heading2"><h2 id="External_links">External links</h2></div>
<ul><li><span class="official-website"><span class="url"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20150618184706/http://compsoc.dur.ac.uk/whitespace/tutorial.php">Official website</a></span></span></li>
<li><a rel="nofollow" class="external text" href="http://developers.slashdot.org/article.pl?sid=03/04/01/0332202">Release announcement on Slashdot</a></li>
<li><a rel="nofollow" class="external text" href="https://github.com/wspace/corpus">The Whitespace Corpus</a> A collection of interpreters, compilers, and programs for Whitespace</li>
<li><a rel="nofollow" class="external text" href="https://github.com/hostilefork/whitespacers/">Collection of Whitespace interpreters in various script languages</a></li>
<li><a rel="nofollow" class="external text" href="http://metacpan.org/module/Acme::Bleach">Acme::Bleach</a> A <a href="Perl" title="Perl">Perl</a> module that rewrites the body of your module to a whitespace-only encoding ("for <i>really</i> clean programs").</li></ul>
<div class="navbox-styles"><style data-mw-deduplicate="TemplateStyles:r1129693374">
/* start https://en.wikipedia.org/ */
.mw-parser-output .hlist dl,.mw-parser-output .hlist ol,.mw-parser-output .hlist ul{margin:0;padding:0}.mw-parser-output .hlist dd,.mw-parser-output .hlist dt,.mw-parser-output .hlist li{margin:0;display:inline}.mw-parser-output .hlist.inline,.mw-parser-output .hlist.inline dl,.mw-parser-output .hlist.inline ol,.mw-parser-output .hlist.inline ul,.mw-parser-output .hlist dl dl,.mw-parser-output .hlist dl ol,.mw-parser-output .hlist dl ul,.mw-parser-output .hlist ol dl,.mw-parser-output .hlist ol ol,.mw-parser-output .hlist ol ul,.mw-parser-output .hlist ul dl,.mw-parser-output .hlist ul ol,.mw-parser-output .hlist ul ul{display:inline}.mw-parser-output .hlist .mw-empty-li{display:none}.mw-parser-output .hlist dt::after{content:": "}.mw-parser-output .hlist dd::after,.mw-parser-output .hlist li::after{content:" · ";font-weight:bold}.mw-parser-output .hlist dd:last-child::after,.mw-parser-output .hlist dt:last-child::after,.mw-parser-output .hlist li:last-child::after{content:none}.mw-parser-output .hlist dd dd:first-child::before,.mw-parser-output .hlist dd dt:first-child::before,.mw-parser-output .hlist dd li:first-child::before,.mw-parser-output .hlist dt dd:first-child::before,.mw-parser-output .hlist dt dt:first-child::before,.mw-parser-output .hlist dt li:first-child::before,.mw-parser-output .hlist li dd:first-child::before,.mw-parser-output .hlist li dt:first-child::before,.mw-parser-output .hlist li li:first-child::before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child::after,.mw-parser-output .hlist dd dt:last-child::after,.mw-parser-output .hlist dd li:last-child::after,.mw-parser-output .hlist dt dd:last-child::after,.mw-parser-output .hlist dt dt:last-child::after,.mw-parser-output .hlist dt li:last-child::after,.mw-parser-output .hlist li dd:last-child::after,.mw-parser-output .hlist li dt:last-child::after,.mw-parser-output .hlist li li:last-child::after{content:")";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li::before{content:" "counter(listitem)"\a0 "}.mw-parser-output .hlist dd ol>li:first-child::before,.mw-parser-output .hlist dt ol>li:first-child::before,.mw-parser-output .hlist li ol>li:first-child::before{content:" ("counter(listitem)"\a0 "}
/* end https://en.wikipedia.org/ */
</style><style data-mw-deduplicate="TemplateStyles:r1236075235">
/* start https://en.wikipedia.org/ */
.mw-parser-output .navbox{box-sizing:border-box;border:1px solid #a2a9b1;width:100%;clear:both;font-size:88%;text-align:center;padding:1px;margin:1em auto 0}.mw-parser-output .navbox .navbox{margin-top:0}.mw-parser-output .navbox+.navbox,.mw-parser-output .navbox+.navbox-styles+.navbox{margin-top:-1px}.mw-parser-output .navbox-inner,.mw-parser-output .navbox-subgroup{width:100%}.mw-parser-output .navbox-group,.mw-parser-output .navbox-title,.mw-parser-output .navbox-abovebelow{padding:0.25em 1em;line-height:1.5em;text-align:center}.mw-parser-output .navbox-group{white-space:nowrap;text-align:right}.mw-parser-output .navbox,.mw-parser-output .navbox-subgroup{background-color:#fdfdfd}.mw-parser-output .navbox-list{line-height:1.5em;border-color:#fdfdfd}.mw-parser-output .navbox-list-with-group{text-align:left;border-left-width:2px;border-left-style:solid}.mw-parser-output tr+tr>.navbox-abovebelow,.mw-parser-output tr+tr>.navbox-group,.mw-parser-output tr+tr>.navbox-image,.mw-parser-output tr+tr>.navbox-list{border-top:2px solid #fdfdfd}.mw-parser-output .navbox-title{background-color:#ccf}.mw-parser-output .navbox-abovebelow,.mw-parser-output .navbox-group,.mw-parser-output .navbox-subgroup .navbox-title{background-color:#ddf}.mw-parser-output .navbox-subgroup .navbox-group,.mw-parser-output .navbox-subgroup .navbox-abovebelow{background-color:#e6e6ff}.mw-parser-output .navbox-even{background-color:#f7f7f7}.mw-parser-output .navbox-odd{background-color:transparent}.mw-parser-output .navbox .hlist td dl,.mw-parser-output .navbox .hlist td ol,.mw-parser-output .navbox .hlist td ul,.mw-parser-output .navbox td.hlist dl,.mw-parser-output .navbox td.hlist ol,.mw-parser-output .navbox td.hlist ul{padding:0.125em 0}.mw-parser-output .navbox .navbar{display:block;font-size:100%}.mw-parser-output .navbox-title .navbar{float:left;text-align:left;margin-right:0.5em}body.skin--responsive .mw-parser-output .navbox-image img{max-width:none!important}@media print{body.ns-0 .mw-parser-output .navbox{display:none!important}}
/* end https://en.wikipedia.org/ */
</style></div><div role="navigation" class="navbox" aria-labelledby="Esoteric_programming_languages165" style="padding:3px"><table class="nowraplinks mw-collapsible autocollapse navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><style data-mw-deduplicate="TemplateStyles:r1239400231">
/* start https://en.wikipedia.org/ */
.mw-parser-output .navbar{display:inline;font-size:88%;font-weight:normal}.mw-parser-output .navbar-collapse{float:left;text-align:left}.mw-parser-output .navbar-boxtext{word-spacing:0}.mw-parser-output .navbar ul{display:inline-block;white-space:nowrap;line-height:inherit}.mw-parser-output .navbar-brackets::before{margin-right:-0.125em;content:"[ "}.mw-parser-output .navbar-brackets::after{margin-left:-0.125em;content:" ]"}.mw-parser-output .navbar li{word-spacing:-0.125em}.mw-parser-output .navbar a>span,.mw-parser-output .navbar a>abbr{text-decoration:inherit}.mw-parser-output .navbar-mini abbr{font-variant:small-caps;border-bottom:none;text-decoration:none;cursor:inherit}.mw-parser-output .navbar-ct-full{font-size:114%;margin:0 7em}.mw-parser-output .navbar-ct-mini{font-size:114%;margin:0 4em}html.skin-theme-clientpref-night .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}@media(prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}}@media print{.mw-parser-output .navbar{display:none!important}}
/* end https://en.wikipedia.org/ */
</style><div id="Esoteric_programming_languages165" style="font-size:114%;margin:0 4em"><a href="Esoteric_programming_language" title="Esoteric programming language">Esoteric programming languages</a></div></th></tr><tr><td colspan="2" class="navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Beatnik_(programming_language)" title="Beatnik (programming language)">Beatnik</a></li>
<li><a href="Befunge" title="Befunge">Befunge</a></li>
<li><a href="Brainfuck" title="Brainfuck">Brainfuck</a></li>
<li><a href="FRACTRAN" title="FRACTRAN">FRACTRAN</a></li>
<li><a href="INTERCAL" title="INTERCAL">INTERCAL</a></li>
<li><a href="Iota_and_Jot" title="Iota and Jot">Iota and Jot</a></li>
<li><a href="JSFuck" title="JSFuck">JSFuck</a></li>
<li><a href="Leet_(programming_language)" title="Leet (programming language)">Leet</a></li>
<li><a href="LOLCODE" title="LOLCODE">LOLCODE</a></li>
<li><a href="Malbolge" title="Malbolge">Malbolge</a></li>
<li><a href="One-instruction_set_computer" title="One-instruction set computer">One-instruction set computer</a></li>
<li><a href="Piet_(programming_language)" class="mw-redirect" title="Piet (programming language)">Piet</a></li>
<li><a href="Shakespeare_Programming_Language" title="Shakespeare Programming Language">Shakespeare Programming Language</a></li>
<li><a href="Unlambda" title="Unlambda">Unlambda</a></li>
</ul>
</div></td></tr><tr><td class="navbox-abovebelow" colspan="2"><div><span class="noviewer" typeof="mw:File"><span title="Category"></span></span> Category</div></td></tr></tbody></table></div>
</div><!--htdig_noindex--><div><div class="zim-footer">
This article is issued from <a class="external text" title="Last edited on 2025-07-23" href="https://en.wikipedia.org/wiki/?title=Whitespace_(programming_language)&oldid=1302151225">Wikipedia</a>. The text is available under <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-Share Alike 4.0</a> unless otherwise noted. Additional terms may apply for the media files.
</div>
</div><!--/htdig_noindex--></div>
</div>
</main>
</div>
</div>
</div>
</body></html>